#!/bin/sh

#= auto build example

## hyphop ##

set -e

export LINUX_VER=linux-5.4.5

./kernel_prepare

./patch_ ../patches/$LINUX_VER/*.patch
./patch_ ../patches/wifi_4359/*.patch

#exit 0

./make_kernel_mainline_vimsX -n
./kernel_config ../files/configs/mmc_m
./kernel_config ../files/configs/eth2_y
./kernel_config ../files/configs/small_size_n

NOPOST=1 ./make_kernel_mainline_vimsX dtbs || echo "[w] ups...">&2

./make_kernel_mainline_vimsX

TAR=1 ./make_kernel_mainline_vimsX_modules
